﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Fin;
using nERP.Model;
using nERP.Model.Po;

namespace nERP.ViewModel.Fin.PaymentDetailVMs
{
    public partial class PaymentDetailTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._PaymentDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Seq);
        [Display(Name = "_Model._PaymentDetail._Pay")]
        public ExcelPropety Pay_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.PayId);
        [Display(Name = "_Model._PaymentDetail._PayDetailCode")]
        public ExcelPropety PayDetailCode_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.PayDetailCode);
        [Display(Name = "_Model._PaymentDetail._Buy")]
        public ExcelPropety Buy_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.BuyId);
        [Display(Name = "_Model._PaymentDetail._Amount1")]
        public ExcelPropety Amount1_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Amount1);
        [Display(Name = "_Model._PaymentDetail._Amount2")]
        public ExcelPropety Amount2_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Amount2);
        [Display(Name = "_Model._PaymentDetail._Amount3")]
        public ExcelPropety Amount3_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Amount3);
        [Display(Name = "_Model._PaymentDetail._Amount4")]
        public ExcelPropety Amount4_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Amount4);
        [Display(Name = "_Model._PaymentDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Remark);
        [Display(Name = "_Model._PaymentDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.Status);
        //[Display(Name = "_Model._PaymentDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._PaymentDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._PaymentDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._PaymentDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._PaymentDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<PaymentDetail>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class PaymentDetailImportVM : BaseImportVM<PaymentDetailTemplateVM, PaymentDetail>
    {
            //import

    }

}